package main

import (
	"fmt"
	"go-example/sort"
)

func main() {
	array := []int{0, 6, 4, 1, 2, 3, 3, 5, 5, 8, 7, 9}
	// sort.MergeSort(array[:])
	sort.Quicksort(array[:])
	fmt.Println("after sort:", array)
	index := sort.BinarySearch(array, 5)
	fmt.Println("find index:", index)
}
